<include file="Public:header" />

<head>
    <link rel="stylesheet" type="text/css" href="Public/Mobile/css/Normalize.css">
    <link rel="stylesheet" type="text/css" href="Public/Mobile/css/gamenav.css">
    <link rel="stylesheet" type="text/css" href="Public/Mobile/css/cfunding.css">
</head>

<body>
    <div class="wraper">
        <!-- 加载loading -->
        <div class="loading" id="loader">
        </div>
        <!-- 导航栏 -->
        <include file="Public:gheader" />
        <script type="text/javascript"></script>
        <!-- 主页内容 -->
        <div class="content1">
            <img src="Public\Mobile\new\images\games\beijing.png">
            <div class="personal-i">
                <div class="personal-logo"><img src="{$user.header}"></div>
                <div class="user-id">{$user.name}</div>
                <div class="user-rank">排名：<span>{$user.paiming}</span></div>

                <!--                 <div class="help">助力值</div> -->
                <div class="help-n">{$user.zhulizhi}</div>
            </div>
            <a href="{:U('Index/teamsindex',array(id=>$team[id]))}">
                <div class="reward">
                    <input id="tid" value="{$team.id}" type="hidden">
                    <p><span>{$team.name}</span>已众筹奖金</p>
                </div>
                <div class="reward1">
                    {$team.jiangjin}
                </div>
            </a>
            <div class="plus-one"><img src="Public\Mobile\new\images\games\plusone.png"></div>
            <div class="c-rules"><img src="Public\Mobile\new\images\games\2.png"></div>
            <div class="c-prize"><img src="Public\Mobile\new\images\games\3.png"></div>
            <div class="c-rank"><img src="Public\Mobile\new\images\games\6.png"></div>
            <div class="cfunding-content">
                <div class="rules-c">①每位粉丝助力，将为战队增加1元获胜现金奖金
                    <br>②战队获得校赛冠军、总决赛名次后，将为粉丝发放相应的福利，发放依据助力总人数排名兑奖。相同助力人数按达到该人数的先后时间排序。
                    <br>③战队、粉丝获奖后，请联系主办方QQXXX，进行奖品发放。
                    <br>④战队奖金仅在获得校赛冠军、总决赛冠亚季殿军时可以获得，其中50%奖金于校赛冠军发放，50%奖金于总决赛发放。作弊用户直接取消获奖资格，我们保留追究其责任的权利。</div>
                <div class="prize-c"></div>
                <div class="rank-c">
                    <volist name="zhulilist" id="l" key="i">
                        <div class="rank-user"><img src="./Public/Mobile/new/images/games/paihang.png">
                            <div class="personal-logo-r"><img src="{$l.userinfo.header}"></div>
                            <div class="user-id-r">{$l.userinfo.name}</div>
                            <div class="user-rank-r">排名：<span>{$i}</span></div>

                            <div class="help-n-r">{$l.zhuli}</div>
                        </div>
                    </volist>


                </div>
            </div>
        </div>

    </div>
    <script type="text/javascript">
    $(".c-rules img").click(function() {
        $(".c-rules img").attr('src', 'Public/Mobile/new/images/games/1.png');
        $(".c-prize img").attr('src', 'Public/Mobile/new/images/games/3.png');
        $(".c-rank img").attr('src', 'Public/Mobile/new/images/games/6.png');
        $(this).attr('src', 'Public/Mobile/new/images/games/2.png');
        $(".cfunding-content").animate({
            left: '0'
        }, 200);
    })
    $(".c-prize img").click(function() {
        $(".c-rules img").attr('src', 'Public/Mobile/new/images/games/1.png');
        $(".c-prize img").attr('src', 'Public/Mobile/new/images/games/3.png');
        $(".c-rank img").attr('src', 'Public/Mobile/new/images/games/6.png');
        $(this).attr('src', 'Public/Mobile/new/images/games/4.png');
        $(".cfunding-content").animate({
            left: '-100%'
        }, 200);
    })
    $(".c-rank img").click(function() {
        $(".c-rules img").attr('src', 'Public/Mobile/new/images/games/1.png');
        $(".c-prize img").attr('src', 'Public/Mobile/new/images/games/3.png');
        $(".c-rank img").attr('src', 'Public/Mobile/new/images/games/6.png');
        $(this).attr('src', 'Public/Mobile/new/images/games/5.png');
        $(".cfunding-content").animate({
            left: '-200%'
        }, 200);
    })
    $(".plus-one").click(function() {
        var tid=$("#tid").val();
        var jzl=$(".help-n").text();
        $.post("{:U('Index/dozhuli')}", {tid:tid}, function(v){

            if(v.jieguo=='cg'){
                var newzl=Number(jzl)+1;
                $(".help-n").text(newzl);
                $(".reward1").text(v.jiangjin);

            }else if(v.jieguo=='yuebuzu'){
                var jinbi_cha=110-v.user_yue;
                show_yuebz_box(jinbi_cha);
            }else if(v.jieguo=='sb'){
                alert("助力失败");
            }

        },'JSON');
    })

    </script>
</body>
<include file="Public:footer" />
